package com.rykj.energy.database.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rykj.energy.database.pojo.BusinessRotation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface RotationMapper extends BaseMapper<BusinessRotation> {

    List<BusinessRotation> getRotationsByUserId(@Param("userId") Integer userId);

    IPage<BusinessRotation> getRotationPageByUserId(Page<BusinessRotation> page, @Param("orgIds") List<Integer> orgIds, @Param("userId") Integer userId);
}
